package com.bjsxt.controller;

import com.bjsxt.commons.pojo.LiveGoodsResult;
import com.bjsxt.pojo.Users;
import com.bjsxt.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UsersController {
    @Autowired
    private UserService userService;

    @RequestMapping("/login")
    @CrossOrigin
    public LiveGoodsResult login(Users user){
        return userService.login(user);
    }
}
